srcs:=server/epoll.c server/mingling.c server/recvFile.c server/main.c server/taskQueue.c server/tcpInit.c server/threadPool.c server/transFile.c server/worker.c# 目前的服务端源码文件
objs:=$(srcs:%.c=%.o)
srcs1:=client/client.c client/recvFile.c client/transFile.c client/epoll.c client/taskQueue.c   client/mingling.c client/threadPool.c 
objs1:=$(srcs1:%.c=%.o)
all:client/client server/server
client/client:$(objs1)
	gcc $^ -o $@ -lpthread -lssl -lcrypto
server/server:$(objs) # 先编译成.o 再连接生成可执行程序
	gcc $^ -o $@ -lpthread -lcrypt -lssl -lcrypto
%.o:%.c # 只编译不连接
	gcc -c $^ -o $@ -g
clean:
	$(RM) $(objs) client/client server/server
	$(RM) $(objs1) client/client server/server